package org.googlecode.lightning.search.parse.parser;

import java.io.IOException;

import org.daragon.fulltext.segment.Holder;

/**
 * 
 * @author daragon
 * 
 */
public class TextParser extends SimpleDocParser {

	public static final String MIME_TYPE = "text/plain";
	
	/**
	 * 
	 */
	@Override
	public String extractText(Holder holder) throws IOException {
		return new String(holder.getContent(), holder.getCharset());
	}
}
